package com.ssy.lingxi.platform.manage.entity.content;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 资讯收藏实体类
 * @author fhj
 * @version 2.0.0
 * @date 2020/9/24
 */
@Data
@Entity
@Table(schema = "public", name = "man_content_information_collect")
public class ContentInformationCollect implements Serializable {
    private static final long serialVersionUID = 6003998479233538962L;

    @ApiModelProperty(value = "主键id")
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "content_information_collect_seq")
    @SequenceGenerator(sequenceName = "man_content_information_collect_seq", name = "content_information_collect_seq", allocationSize = 1)
    private Long id;

    @ApiModelProperty(value = "会员ID")
    private Long memberId;

    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @ApiModelProperty(value = "资讯ID")
    private Long informationId;

    @ApiModelProperty(value = "创建时间")
    private Long createTime = System.currentTimeMillis();
}
